package Test01;

import java.time.LocalDate;

public class Book {
//    书名、作者、出版日期和价格
    private String name;
    private String author;
    private LocalDate date;
    private double price;

    public Book(String name, String author, LocalDate date, double price) {
        this.name = name;
        this.author = author;
        this.date = date;
        this.price = price;
    }

    public Book() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public LocalDate getDate() {
        return date;
    }

    public void setDate(LocalDate date) {
        this.date = date;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }
    public String toString() {
        return "Test01.Book{" +
                "name='" + name + '\'' +
                ", author='" + author + '\'' +
                ", date='" + date + '\'' +
                ", price=" + price +
                '}';
    }
}
